<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html lang="et">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" >
	<title>Login</title>
	<link href="login_style.css" rel="stylesheet" type="text/css" >
	<script type="text/javascript" src="muutujad.js" charset="utf-8"></script>
	<script type="text/javascript" src="jquery-1.7.1.js" charset="utf-8"></script>
	<script type="text/javascript" src="func.js" charset="utf-8"></script>
	<script type="text/javascript" src="gameLogic.js" charset="utf-8"></script>
	
	<script type="text/javascript">
		$.get("CheckUser", function(data) {
			if (data != "") {
				redirect("index.jsp");
			}
		});
	</script>
</head>

<body>
	<div id="main">
		<p class="login">Sisselogimine</p>
		<div id="fb-root">
			<a href="https://www.facebook.com/dialog/oauth?client_id=${FBAppID}&amp;redirect_uri=${FBRedirect}&amp;state=${FBState}">Logi sisse FB-ga</a>
		</div>
	</div>	
</body>
</html>
